<?php


namespace app\common\lib;


class Time
{
    public static function userLoginExpiresTime($type = 2)
    {
        $day = 0;

        switch ($type) {
            case 1:
                $day = $type * 7;
                break;
            case 2:
                $day = $type * 30;
                break;
        }

        return $day * 24 * 3600;
    }
}